
	<script type="text/javascript" src="{$_W['siteroot']}/web/resource/js/lib/jquery-1.11.1.min.js"></script>
<style>
	
	/*dialogModal */
	.dialogModal {position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.7);z-index:888888;overflow:auto;transition:all 200ms ease}
	.dialogModal .dialogModal_container {position:relative;width:50%;max-width:650px;left:0;right:0;margin:auto auto 40px;opacity:0;box-shadow:0 2px 6px rgba(0, 0, 0, 0.6);background:#fff;transition:all 200ms ease;font-family:sans-serif;font-size:14px;font-weight:initial;font-style:initial;color:initial;text-decoration:initial;text-transform:initial}
	.dialogModal.open {opacity:1}
	.dialogModal.open .dialogModal_container {opacity:1}
	.dialogModal  .close {line-height:12px;font-size:25px;font-weight:bold;font-family:serif;position:absolute;right:15px;top:15px;color:#000;opacity:0.2;padding:0;cursor:pointer;background:transparent;border:0;outline:0}
	.dialogModal .close:hover {opacity:1}
	.dialogModal .dialogModal_body {background:#fff;margin: -208px 0 0 -350px;width: 700px;height: 415px;position:absolute;left:50%;top:50%;}
	.dialogModal .dialogModal_header {padding:10px 20px;background:#eaeaea;line-height:20px}
	.dialogModal .dialogModal_content {padding:15px 20px}
	.dialogModal .dialogModal_content ul,
	.dialogModal .dialogModal_content ul li{padding:0;list-style:none;font-size:15px;line-height:26px;margin-top:0;}
	.dialogModal .dialogModal_content ul li a{color:#232323;text-decoration:none;}
	.dialogModal .dialogModal_content ul li a:active,
	.dialogModal .dialogModal_content ul li a:visited{color:#999;}
	
	.dialogModal .dialogModal_footer {background:#fafafa;padding:10px 20px;border-top:1px solid #ddd;text-align:right}
	.dialogModal .dialogModal_footer button {margin:0 0 0 5px}
	.page-cont{text-align:center;}
	.page-cont a{display:inline-block;line-height:20px;color:#454545;text-decoration:none;border:1px solid #ccc;font-size:12px;border-radius:3px;margin:0 3px;}
	.page-cont a.selected{background:#4081BE;border:1px solid #4081BE;border-radius:3px;color:#fff;}
	.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
}
.pagination>li {
    display: inline;
}
.pagination>li:first-child>a, .pagination>li:first-child>span {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.pagination>.active>a, .pagination>.active>span, .pagination>.active>a:hover, .pagination>.active>span:hover, .pagination>.active>a:focus, .pagination>.active>span:focus {
    z-index: 2;
    color: #fff;
    cursor: default;
    background-color: #428bca;
    border-color: #428bca;
}
.pagination>li>a, .pagination>li>span {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #428bca;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}
.mess-list{list-style-type:none;counter-reset:sectioncounter;}
.mess-list li:before {
       content:counter(sectioncounter) "、"; 
       counter-increment:sectioncounter;
    }
</style>

			<div class="dialogModal_content">
				<ol class='mess-list'>
				{loop $list $row}
				{if $row['type']==1 && $_COOKIE["storeid"]>0}
				{php $url=$this->createWebUrl('yajinrefund',array('type'=>'apply'))}
				{else}
				{php $url=$this->createWebUrl('yajin',array('type'=>'apply'))}
				{/if}
				{if $row['type']==2}
				{php $url=$this->createWebUrl('fxtx')}
				{/if}
				{if $row['type']==3}
				{php $url=$this->createWebUrl('rzcheck')}
				{/if}
					<li><a href="{$url}" id="waibuurl" data-id="{$row['id']}" {if $row['status']==2}style="color: red;"{else} style="color: black;"{/if}>{$row['text']}</a></li>
					
				{/loop}
				</ol>
				<div class="page-cont">
					{$pager}
				</div>
			</div>
			<!--<div class="dialogModal_footer">
				<button type="button">确定</button>
				<button type="button">取消</button>
			</div>-->
	
	<script>
		$('a#waibuurl').click(function(){
			var id = $(this).data('id');
			var url1 = $(this).attr('href');
			$.ajax({
                    type:"post",
                    url:"{$_W['siteroot']}/app/index.php?i={$_W['uniacid']}&c=entry&do=UpdMessage&m=zh_cjdianc",
                    dataType:"text",
                    data:{id:id},
                    success:function(data){console.log($(this).attr('href'));
                        window.parent.location.href = url1;
                    }
                })
				return false;
		});
	</script>
		
	
